<?php
/* @var $this CategoryAdminController */
/* @var $model Category */

$this->breadcrumbs=array(
	'Categories'=>array('index'),
	$model->category_id,
);

$this->menu=array(
	array('label'=>'Thêm danh mục', 'url'=>array('create')),
	array('label'=>'Sửa', 'url'=>array('update', 'id'=>$model->category_id)),
	//array('label'=>'Xoá', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->category_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản trị danh mục', 'url'=>array('admin')),
);
?>

<h1>Chi tiết danh mục (Mã: <?php echo $model->category_id; ?>)</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'category_id',
		'category_name',
		'category_image',
        array(
            'name'=>'category_parent',
            'value'=>($model->category_parent)?Category::model()->getCategoryName($model->category_parent):false,
        ),
	),
)); ?>
